from django.urls import path, include
from rest_framework.routers import DefaultRouter

from apps.projectbases.views import ProjectPlanHViewSet, ProjectInfoViewSet, ProjectCustomerViewSet, \
    CommonSectionViewSet, MoreSectionViewSet, CommonSectionTypeViewSet, CommonSectionTypeOnlyViewSet

project_base_router = DefaultRouter()
project_base_router.register('projectplanbase', ProjectPlanHViewSet, 'Project Plan Base List')
project_base_router.register('version', ProjectPlanHViewSet, 'Project Plan Version History List')
project_base_router.register('projectplaninfo', ProjectInfoViewSet, 'Project Plan Info List')
project_base_router.register('projectplancustomer', ProjectCustomerViewSet, 'Project Plan Customer List')
project_base_router.register('commonsectiontype', CommonSectionTypeViewSet, 'Common Section Type List')
project_base_router.register('commonsectiontypeonly', CommonSectionTypeOnlyViewSet, 'Common Section Type Only List')
project_base_router.register('commonsection', CommonSectionViewSet, 'Common Section List')
project_base_router.register('moresection', MoreSectionViewSet, 'More Section List')


project_base_urlpatterns = [
    path('', include(project_base_router.urls)),
    # path('commonsectiontype/', CommonSectionTypeViewSet.as_view()),
]